package com.hui.utils;

import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class RedisClient {

	private JedisPool jedisPool;// 非切片连接池

	public RedisClient() {
		initialPool();
	}
	/**
	 * 初始化非切片池
	 */
	private void initialPool() {
		// 池基本配置
		JedisPoolConfig config = new JedisPoolConfig();
		config.setMaxIdle(5);
		config.setTestOnBorrow(false);
		jedisPool = new JedisPool(config, "127.0.0.1", 6379);
	}
	
	
	
	public static void main(String[] args) {
		RedisClient rc = new RedisClient();
		
	 
	}

}